package ge.unihack.instantdj.protocol.server;

import ge.unihack.instantdj.protocol.common.ClientInfo;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;

class ClientInfoImpl implements ClientInfo {

		private InputStream in;
		private OutputStream out;

		public ClientInfoImpl(Socket socket) throws IOException {
			in = socket.getInputStream();
			out = socket.getOutputStream();
		}

		@Override
		public InputStream getInputStream() {
			return in;
		}

		@Override
		public OutputStream getOutputStream() {
			return out;
		}

	}